<%--
  Created by IntelliJ IDEA.
  User: 唐东
  Date: 2021/1/21
  Time: 0:55
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
    <title>我的订单</title>
</head>
<body bgcolor="pink">
    <h2 align="center">我的订单</h2>
    <hr>
    <table  width="900" align="center" class="border_distance" bgcolor="white">
        <thead>
            <tr bgcolor="#DB7093">
                <td align="center" width="80">商品名称</td>
                <td align="center">商品单价</td>
                <td align="center" width="100">购买数量</td>
                <td align="center" width="100">金额</td>
            </tr>
        </thead>
        <tbody>
        <c:forEach items="${requestScope.list}" var="order">
                <tr>
                    <td align="center">${order.bookName}</td>
                    <td align="center">${order.price}</td>
                    <td align="center">${order.num}</td>
                    <td align="center">${order.totalPrice}</td>
                </tr>
                <tr align="center">
                    <td colspan="2">
                        总计：${order.allPrice}
                    </td>
                    <td colspan="3">
                        下单时间：${order.createTime}
                    </td>
                </tr>
                <tr align="center">
                    <td colspan="5">
                        收货地址：${order.address}
                    </td>
                </tr>
                <tr align="center">
                </tr>
        </c:forEach>
        </tbody>
    </table>
</body>
</html>
